#pragma once
#include "msgdialog.h"
#include "singleton.hpp"

#define MSGDLG (*(msgDlgMng::getInstance()))
class msgDlgMng:public QObject
{
	SINGLETON_OBJECT(msgDlgMng)

protected:
	QMap<QString,msgDialog*> _windows;
public:
	msgDlgMng(void);
	~msgDlgMng(void);
	msgDialog* get(const QString& ip);
	int close(const QString& ip);
};
